package com.cuitrip.business.home.recommend.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.cuitrip.business.home.favorite.TravelTrip;
import com.lab.adapter.IAdapterData;

import java.io.Serializable;

public class RecommendTravelTrip extends TravelTrip implements IAdapterData, Serializable {


    @JSONField(name = "isLike")
    private int isLike;
    private String insiderId;
    private String serviceScore;
    private int reviewCount;
    private int likesNum;
    private String address;
    private String bestTime;

    public RecommendTravelTrip() {
        super();
    }

    public RecommendTravelTrip(String sid, String serviceName, String headPic, String serviceAddress, String userNick, String servicePicUrl, String isShow, String showPrice, String priceType, String showCurrency, String career) {
        super(sid, serviceName, headPic, serviceAddress, userNick, servicePicUrl, isShow, showPrice, priceType, showCurrency, career);
    }

    public void setTravelTrip(TravelTrip travelTrip) {
        this.sid = travelTrip.getSid();
        this.serviceName = travelTrip.getServiceName();
        this.headPic = travelTrip.getHeadPic();
        this.serviceAddress = travelTrip.getServiceAddress();
        this.userNick = travelTrip.getUserNick();
        this.servicePicUrl = travelTrip.getServicePicUrl();
        this.isShow = travelTrip.getIsShow();
        this.showPrice = travelTrip.getShowPrice();
        this.priceType = travelTrip.getPriceType();
        this.showCurrency = travelTrip.getShowCurrency();
        this.career = travelTrip.getCareer();
    }


    public int getIsLike() {
        return isLike;
    }

    public void setIsLike(int isLike) {
        this.isLike = isLike;
    }

    public String getInsiderId() {
        return insiderId;
    }

    public void setInsiderId(String insiderId) {
        this.insiderId = insiderId;
    }

    public String getServiceScore() {
        return serviceScore;
    }

    public void setServiceScore(String serviceScore) {
        this.serviceScore = serviceScore;
    }

    public int getReviewCount() {
        return reviewCount;
    }

    public void setReviewCount(int reviewCount) {
        this.reviewCount = reviewCount;
    }

    public boolean isLiked() {
        return isLike == 1;
    }

    public int getLikesNum() {
        return likesNum;
    }

    public void setLikesNum(int likesNum) {
        this.likesNum = likesNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBestTime() {
        return bestTime;
    }

    public void setBestTime(String bestTime) {
        this.bestTime = bestTime;
    }
}
